package com.njsf.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.njsf.dao.BookCategoryMapper;
import com.njsf.dao.BookMapper;
import com.njsf.pojo.BookCategory;
import com.njsf.service.BookCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookCategoryServiceImpl implements BookCategoryService {

    @Autowired
    private BookCategoryMapper bookCategoryMapper;


    @Override
    public List<BookCategory> getBookCategories() {
        List<BookCategory> all = bookCategoryMapper.findAll();
        return all;
    }
}
